from barrelhouse.core.software.models import license_type, firmware, operating_system, licensed_software, opensource_software
from django.contrib import admin

class license_type_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('name', 'copyright', 'eula_admin')

class operating_system_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('full_version_admin',)

class firmware_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('full_version_admin',)

class licensed_software_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('name','operating_system','key','info')

class opensource_software_admin(admin.ModelAdmin):

    save_on_top = True
    list_display = ('name','operating_system', 'license_type')

admin.site.register(license_type, license_type_admin)
admin.site.register(operating_system, operating_system_admin)
admin.site.register(firmware, firmware_admin)
admin.site.register(licensed_software, licensed_software_admin)
admin.site.register(opensource_software, opensource_software_admin)
